package com.hong.concurrent.chapter18;

/**
 * @Author csh
 * @Description 对应ActiveObject的每一个方法
 * @Date 2018/7/12 21:07
 */
public abstract class MethodRequest
{
    protected final Servant servant;

    protected final FutureResult futureResult;

    public MethodRequest(Servant servant, FutureResult futureResult) {
        this.servant = servant;
        this.futureResult = futureResult;
    }

    public abstract void execute();
}
